import request from '../utils/request'

/**
 * 登录
 * @param {String} data.userName
 * @param {String} data.password
 */
export const login = data => request({
  url: '/login',
  method: 'POST',
  data
})

// 获取用户信息
export const getuserinfo = params => request({
  url: '/me',
  method: 'GET',
  params
})
